<%@ include file="/WEB-INF/tiles/include.jsp"%>

<script type="text/javascript">
	$(document).ready(function($) {
		$("#modalbox_save").click(function() {
			$.wis.util.doSave()
		});
	
		$("#facebox_close").click(function() {
			$.facebox.close()   
		});
	
	});
</script>

<form:form id="editForm" commandName="commandMenu" method="post" action="${pageContext.request.contextPath}/basic/admin/menu.save">
	<form:hidden path="pgIndex"/>
	<form:hidden path="pgRows"/>
	<form:hidden path="pgTotal"/>
	<form:hidden path="id"/>
	<form:hidden path="strAction"/>

<table class="tableInput">
	<tr>
		<th class="field"><spring:message code="label.menuCode"/>&nbsp;:</th>
		<td class="even"><form:input path="code" size="30" maxlength="30"/></td>
	</tr>
	<tr>
		<th class="field"><spring:message code="label.menuName"/>&nbsp;:</th>
		<td class="odd"><form:input path="name" size="30" maxlength="30"/></td>
	</tr>
	<tr>
		<th class="field"><spring:message code="label.menuLink"/>&nbsp;:</th>
		<td class="even"><form:input path="link" size="50" maxlength="255"/></td>
	</tr>		
	<tr>
		<th class="field"><spring:message code="label.menuIcon"/>&nbsp;:</th>
		<td class="odd"><form:input path="icon" size="50" maxlength="255"/></td>
	</tr>
	<tr>
		<th class="field"><spring:message code="label.viewable"/>&nbsp;:</th>
		<td class="even"><form:checkbox path="isView" /></td>
	</tr>		
	<tr>
		<th class="field"><spring:message code="label.description"/>&nbsp;:</th>
		<td class="odd"><form:textarea path="description" cols="50" rows="5"/></td>
	</tr>
</table>
<table class="tableButton">
	<tr><td align="left">
		<span class="button"><a href="#modalbox_save" id="modalbox_save"><spring:message code="button.save"/></a></span>
		<span class="button"><a href="#facebox_close" id="facebox_close"><spring:message code="button.cancel"/></a></span>
	</td></tr>
</table>
</form:form>